package com.jzo2o.customer.controller.worker;


import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.service.IWorkerCertificationAuditService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 服务人员认证审核表 前端控制器
 * </p>
 *
 * @author wei
 * @since 2025-01-18
 */

@RestController("workerWorkerCertificationAuditController")
@RequestMapping("/worker/worker-certification-audit")
@Api(tags = "服务端 - 实名接口")
public class WorkerCertificationAuditController {
    @Autowired
    private IWorkerCertificationAuditService workerCertificationAuditService;
    @PostMapping
    public void certificationAudit(@RequestBody WorkerCertificationAuditAddReqDTO reqDTO) {
        // TODO
        workerCertificationAuditService.certificationAudit(reqDTO);
    }
    @GetMapping("/rejectReason")
    public String rejectReason() {
        return workerCertificationAuditService.rejectReason();
    }
}
